package com.yoomiito.app.ui.anyview.goodsinfo.bottom;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.TextView;

import com.yoomiito.app.R;
import com.yoomiito.app.interf.BaseBottomBar;
import com.yoomiito.app.model.bean.GoodsDetail;

public class FindCouponBottomBar extends BaseBottomBar {

    private TextView mBuy;
    public FindCouponBottomBar(Context context,boolean isLogin) {
        super(context,isLogin);
        LayoutInflater.from(context).inflate(R.layout.item_buy_button,this,true);
        initView();
    }

    private void initView() {
        mBuy = findViewById(R.id.free_buy);
        mBuy.setText("立即免单");
        mBuy.setOnClickListener(v ->{
            checkClick();
            dispatchEvent(true,false,false);
        });
    }


    @Override
    public void updateInfo(GoodsDetail detail) {
        super.updateInfo(detail);
    }
}
